package cn.com.zhangwoo.microstar.adapter;

import java.util.ArrayList;
import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import cn.com.zhangwoo.microstar.viewpager.fragment.HomePageViewPagerFragment;

public class CategoryPagerAdapter extends FragmentPagerAdapter {

	List<Fragment> list = new ArrayList<Fragment>();

	public CategoryPagerAdapter(FragmentManager fm,Fragment fragment) {
		super(fm);
		list.add(fragment);
		
	}

	@Override
	public int getItemPosition(Object object) {
		return POSITION_NONE;
	}

	@Override
	public Fragment getItem(int arg0) {
		// TODO Auto-generated method stub
		return list.get(arg0);
	}

	@Override
	public int getCount() {
		return list.size();
	}
	
}
